# Contributor: Francesco Colista <fcolista@alpinelinux.org>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=rtptools
pkgver=1.22
pkgrel=2
pkgdesc="RTP Tools"
url="https://www.cs.columbia.edu/irt/software/rtptools/"
arch="all"
license="BSD-3-Clause"
makedepends="automake autoconf m4 libtool"
subpackages="$pkgname-doc"
source="$pkgname-$pkgver.tar.gz::https://github.com/irtlab/rtptools/archive/$pkgver.tar.gz"

prepare() {
	default_prepare
	libtoolize --force
	aclocal
	autoconf --force
	automake --force-missing --add-missing
}

build() {
	./configure --prefix=/usr
	make
}

check() {
	make check
}

package() {
	make DESTDIR="$pkgdir" install
}

sha512sums="17cfda22fab8323f491d9ded3df09b2441a4bcecdcba297e8aeb2c57136e5a670de7ce8302b9aa7ef71683e7ad285e7fc60f8ef400f7f6a792306b0c44cc2b14  rtptools-1.22.tar.gz"
